//
//  AllMessageTableViewCell.m
//  Cycling
//
//  Created by 迟国强 on 2023/4/10.
//

#import "AllMessageTableViewCell.h"

#import "CyclingRouteDetailModel.h"

@interface AllMessageTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *speedLbl;
@property (weak, nonatomic) IBOutlet UILabel *climbingLBl;
@property (weak, nonatomic) IBOutlet UILabel *totalOdometerLbl;
@property (weak, nonatomic) IBOutlet UILabel *totalCaloriesLbl;

@property (weak, nonatomic) IBOutlet UILabel *trackLbl;
@property (weak, nonatomic) IBOutlet UILabel *yunsuSpeedLbl;
@property (weak, nonatomic) IBOutlet UILabel *totalYunsuLbl;
@property (weak, nonatomic) IBOutlet UILabel *fastSpeedLbl;

@property (weak, nonatomic) IBOutlet UILabel *totalUpLbl;
@property (weak, nonatomic) IBOutlet UILabel *totalDownLbl;
@property (weak, nonatomic) IBOutlet UILabel *climbingCaloriesLbl;

@property (weak, nonatomic) IBOutlet UILabel *startLbl;
@property (weak, nonatomic) IBOutlet UILabel *endLbl;


@end

@implementation AllMessageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setAllModel:(CyclingRouteOverallModel *)allModel
{
    self.speedLbl.text = allModel.uniform;
    self.climbingLBl.text = allModel.climb;
    self.totalOdometerLbl.text = allModel.mileage;
    self.totalCaloriesLbl.text = allModel.totalcalories;
    
    self.trackLbl.text = allModel.number;
    self.yunsuSpeedLbl.text = allModel.average;
    self.totalYunsuLbl.text = allModel.entire;
    self.fastSpeedLbl.text = allModel.fastest;
    
    self.totalUpLbl.text = allModel.cumulativeRise;
    self.totalDownLbl.text = allModel.cumulativeLow;
    self.climbingCaloriesLbl.text = allModel.calories;
    
}

- (void)setDetailModel:(CyclingRouteDetailModel *)detailModel
{
    self.startLbl.text = [NSString stringWithFormat:@"开始时间：%@", detailModel.createtime];
    self.endLbl.text = [NSString stringWithFormat:@"结束时间：%@", detailModel.endtime];
    self.allModel = detailModel.overall;
}

@end
